Re: Satan_doc on Solaris 2.3

John Ladwig (jladwig@soils.umn.edu)
Wed, 22 Mar 1995 20:07:47 -0600

>>>>> On Thu, 23 Mar 1995 11:43:06 --1000, peter@aodc.gov.au (Peter Edward Voss) said:

    PEV> Following an attempt to run the satan_doc perl script on
    PEV> a Solaris 2.3 platform, the reconfig and make appear to
    PEV> run ok, but on executing satan, I get the following error

    PEV> cannot get SOCK_STREAM from sys/socket.ph or
    PEV> /usr/include/sys/socket.h at socket.pl line 23.

    PEV> Has anyone else run into similar problems with perl5
    PEV> on Solaris, and if so could someone enlighten me with
    PEV> the necessary patch ?

*** satan_doc/htm.pl~	Wed Mar 22 20:07:06 1995
--- satan_doc/htm.pl	Wed Mar 22 20:07:06 1995
***************
*** 112,117 ****
--- 112,118 ----
  sub start_htm_server {
  	local($sockaddr, $proto, $junk);
  
+ 	use Socket;
  	$sockaddr = 'S n a4 x8';
  	($junk, $junk, $proto) = getprotobyname('tcp');
  	socket(SOCK, &AF_INET, &SOCK_STREAM, $proto) || die "socket: $!";